.section entry, "ax"
.globl _start
.type _start, @function

_start:
  mv s0, zero
  la sp, _stack_pointer
  
  lw r0, UART_ADDR_BASE
  lw r1, UART_RANGE_MASK
  csrw mtvec, mtrap_entry

  dift_laddr r0,r1

  lw r0, DIFT_TPR_CONFIG
  lw r1, DIFT_TCR_CONFIG
  dift_tpr r0 
  dift_tcr r1 

  jal _trm_init
